<?php $this->pageTitle = 'Баги' ?>

<?php
    $this->widget('zii.widgets.grid.CGridView', array(
        'dataProvider'=>$model->search(),
        'htmlOptions'=>array('class'=>'grid'),
        'summaryText'=>'',
        'columns'=>array(
            'username',
            'text',
            array(
                'name'=>'Дата',
                'value'=>'$data->date',
                'htmlOptions'=>array('width'=>'70px'),
            ),
            array(
                'name'=>'Комментарий',
                'type'=>'raw',
                'value'=>'CHtml::textArea("$data->id", $data->comment)',
            ),
            array(
                'class'=>'CButtonColumn',
                'template'=>'{delete}',
                'deleteConfirmation'=>'js:"Уверен?"',
                'deleteButtonUrl'=>'Yii::app()->createUrl("admin/deleteFeedback", array("id"=>$data->id))',
            ),
        ),
    ));
?>